//
//  CallBackDesQuestionCell.swift
//  d11
//
//  Created by peale_pro on 2019/10/16.
//  Copyright © 2019 Tech_001. All rights reserved.
//

import UIKit
class CallBackDesQuestionCell: UITableViewCell {
    var titleLabel : UILabel?
    var textView :UITextView?
    var hintLabel :UILabel?
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = UITableViewCell.SelectionStyle.none
        self.setUpUI()

    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    func setUpUI() -> Void {
        self.titleLabel = UILabel.init()
        self.titleLabel?.font = UIFont.systemFont(ofSize: 15)
        self.titleLabel?.text = "请简单的描述您遇到的问题:"
        self.titleLabel?.textAlignment = .left
        self.titleLabel?.textColor = HexRGBAlpha(0x444444, 1)
        self.contentView.addSubview(self.titleLabel!)
        self.titleLabel?.snp.makeConstraints{(make) in
            make.left.equalToSuperview().offset(12)
            make.right.equalToSuperview().offset(-12)
            make.height.equalTo(20)
            make.top.equalToSuperview()
        }
        self.textView = UITextView.init()
     //   self.textView?.placeholder = "请输入问题"
        self.textView?.font = UIFont.systemFont(ofSize: 15)
        self.textView?.textColor = HexRGBAlpha(0x444444, 1)
        self.textView?.layer.cornerRadius = 4
        self.textView?.layer.masksToBounds = true
        self.textView?.layer.borderColor = HexRGBAlpha(0x888888, 1).cgColor
        self.textView?.layer.borderWidth = 1
        self.contentView.addSubview(self.textView!)
        self.textView?.snp.makeConstraints{(make) in
            make.left.equalToSuperview().offset(12)
            make.right.equalToSuperview().offset(-12)
            make.height.equalTo(100)
            make.top.equalTo((self.titleLabel?.snp.bottom)!).offset(5)
        }
        
        self.hintLabel = UILabel.init()
        self.hintLabel?.font = UIFont.systemFont(ofSize: 12)
     //   self.hintLabel?.text = "** 专员将会在5分钟内给您回拨，请保持您的电话畅通"
        self.hintLabel?.text = "【电话客服】会尽快为您致电，请您保持电话畅通"
        self.hintLabel?.textAlignment = .left
        self.hintLabel?.textColor = HexRGBAlpha(0x444444, 1)
        self.contentView.addSubview(self.hintLabel!)
        self.hintLabel?.snp.makeConstraints{(make) in
            make.left.equalToSuperview().offset(12)
            make.right.equalToSuperview().offset(-12)
            make.height.equalTo(20)
            make.top.equalTo((self.textView?.snp.bottom)!)
        }
    }

}
